package com.byxy.computer.student.service;

import java.util.List;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.byxy.computer.student.entity.HomeWork;

@Service
@Transactional
public class HomeWorkServiceImpl implements HomeWorkService {
	@Autowired
	private HomeWorkDao homeWorkDao;

	@Override
	public HomeWork save(HomeWork h) {
		return homeWorkDao.save(h);
	}

	@Override
	public List<HomeWork> findByUId(String uid) {
		// TODO Auto-generated method stub
		return homeWorkDao.findByUid(uid);
	}

	@Override
	public HomeWork findById(String id) {
		// TODO Auto-generated method stub
		return homeWorkDao.findById(id);
	}

}
